package day20171215;

import java.io.*;
import java.util.HashMap;
import java.util.Map;

public class Test {
    public static void main(String[] args) {

        Map<String,Integer> map =new HashMap<String,Integer>();

        try {

            //读取学号文件
            BufferedReader reader = new BufferedReader(new FileReader("D:\\dev\\sctu-java-2017-1\\1606101052易佳\\src\\day20171215\\KV.txt"));

            String sno = null;

            while (!((sno = reader.readLine()) == null)){

                map.put(sno,0);
            }


            //获取文件目录下的文件
            File file = new File("文件目录");

            File[] files = file.listFiles();

            //遍历文件夹下面的每一个文件
            for (File f:files){
                String fileName = f.getName();
                //面向对象java1606101052易佳实验一.docx

            }








        } catch (FileNotFoundException e) {
            e.printStackTrace();
        } catch (IOException e) {
            e.printStackTrace();
        }
    }
}
